﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {
            DetailsView1.DataSource = dn.dap();
            DetailsView1.DataBind();
        }
    }
    DangNhap dn = new DangNhap();
    protected void Button2_Click(object sender, EventArgs e)
    {
        TextBox4.Text = "";
        TextBox5.Text = "";
        TextBox6.Text = "";
        TextBox3.Text = "";
    }
  
    protected void Button1_Click(object sender, EventArgs e)
    {
        dn.ThemCauHoi(TextBox4.Text, TextBox5.Text, TextBox6.Text,TextBox3.Text);

        Label1.Text = "câu hỏi của bạn đã lưu vào hệ thống, vui lòng chờ sử lý";
    }
}
